<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:set var="now" value="<%= new java.util.Date()%>"/>
<c:set var="contextPath" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="${contextPath}/styles/styles.css" />
	<title>Design Webshop Maria Freudenreich</title>
</head>
<body>
	<center>
		<jsp:include page="./pageLayout/header.jsp" />
		<div class="body" style="background-image: url(${contextPath}/images/bodyBackground.png);">
			<div class="sidebar">
				<div class="button"><a href="../index.html">Home</a></div>
				<div class="button"><a href="../flows/registration.html">Login</a></div>
				<div class="button"><a href="../flows/order.html">Warenkorb</a></div>
			</div>
			<div class="productGallery">
				<c:forEach var="article" items="${articleList}">
					<div class="articleThumbContainer">
						<div class="articleThumb" onclick="location.href='${contextPath}/admin/changeArticleData.html?articleID=${article.articleID}'">
							<img width="100" height="100" alt="" src="${contextPath}${article.imageSmallPath}">
						</div>
						<c:if test="${(article.inactiveSince >= now) || (article.inactiveSince == null)}">
							<div class="deleteArticleIcon" onclick="location.href='${contextPath}/flows/???.html?articleID=${article.articleID}'">
								<img width="20" height="20" src="${contextPath}/images/deleteIcon.gif">
							</div>
						</c:if>
					</div>
				</c:forEach>
			</div>
		</div>
	</center>
</body>
</html>